package com.futurescale.sa.model.vo
{
	[Bindable]
	public class NoteVO
	{
		/**
		 * The XML element name. 
		 */
		public static const ELEMENT :String = "Note";
		
		protected var x :XML;
		
		/**
		 * Construct a NoteVO. 
		 */
		public function NoteVO( xml :XML = null )
		{
			this.x = (xml) ? xml : <{ELEMENT}/>;
		}
		
		public function set xml( x :XML ) :void {
			this.x = x;
		}
		
		public function get xml() :XML {
			return x;
		}
		
		/**
		 * The text of this Note. 
		 * @param t
		 * 
		 */
		public function set text( t :String ) :void {
			xml.setChildren( t );
		}
		
		public function get text() :String {
			return xml.toString();
		}
		
		/**
		 * An optional URL. 
		 * @param u
		 * 
		 */
		public function set url( u :String ) :void {
			xml.@url = u;
		}
		
		public function get url() :String {
			return xml.@url;
		}
	}
}